#include <msp430x16x.h>

int main() 
{
  int i, t;
  unsigned char party[100] = { 0x01, 0x04, 0x10, 0x40, 0x80, 0x20, 0x08, 0x02 };
  //unsigned char party[100] = { 0x03, 0x03, 0x03, 0x0C, 0x30, 0xC0, 0xC0, 0xC0, 0x30, 0x0C};
  //unsigned char party[100] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 };

  P5SEL = 0x00; /* Sets P5 to 3.3V I/O */
  P5DIR = 0xFF; /* Sets P5 to output */
  P5OUT = 0x00; /* Sets P5 low */

  while (1) //Starts an infinite loop
  {
    for(i=0; i<8; i++)
    {
      P5OUT = party[i];
      for( t=0 ; t<2000 ; t++ ) nop();
    }
  } 

}
